package main

import "net/http"

func main()  {
		http.HandleFunc("/wx", func(resp http.ResponseWriter, req *http.Request) {
				//fmt.Println(req.UserAgent())
				echostr := req.URL.Query().Get("echostr")
				if echostr == "" {
						echostr = "ok"
				}
				resp.Write([]byte(echostr))
		})
		http.ListenAndServe("localhost:80", nil)
}
